Skip to content

This closes #2513, ATAN2 returns #DIV/0! when both arguments are zero - #2514

Open
ruziba3vich wants to merge 1 commit into
qax-os:masterfrom
ruziba3vich:calc-atan2-zero
Open

ruziba3vich wants to merge 1 commit into
qax-os:masterfrom
ruziba3vich:calc-atan2-zero

Conversation

@ruziba3vich

Copy link
Copy Markdown
Contributor

PR Details

Description

This change updates the ATAN2 function to return #DIV/0! when both arguments are zero, matching Microsoft's documented behavior.

Related Issue

Closes #2513

Motivation and Context

See #2513.

How Has This Been Tested

A regression test has been added to TestCalcCellValue to cover this case.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.72%. Comparing base (1615ceb) to head (f69ebb9).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2514   +/-   ##
=======================================
  Coverage   99.72%   99.72%           
=======================================
  Files          32       32           
  Lines       33212    33234   +22     
=======================================
+ Hits        33122    33144   +22     
  Misses         88       88           
  Partials        2        2           
Flag Coverage Δ
unittests 99.72% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xuri xuri added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ATAN2 does not return the #DIV/0! error when both arguments are zero

2 participants